<?php
	session_start();
	
	if(!isset($_SESSION['learning']) || $_SESSION['learning']!=true) {	
		header("Location:index.php");
		die;
	} else {
		define('ID', $_SESSION['id_pengguna']);
		define('LEVEL', $_SESSION['jns_pengguna']);
		define('NAMA', $_SESSION['nm_pengguna']);
		define('GURU', $_SESSION['guru']);
		define('SISWA', $_SESSION['siswa']);	
		define('ID_GURU', $_SESSION['id_guru']);
		define('ID_SISWA', $_SESSION['id_siswa']);	
		define('HASIL', $_SESSION['hasil']);		
	}
	
?>
